package src.messagesToServer;

import src.messagesToClient.MessageToClient;
import src.serverSide.Control;

/**
 * This class is a command to the server to create a user
 * with the given name and password
 * @author John Stewart
 */
public class AttemptLogin extends MessageToServer {
	private String username;
	private String password;

	public AttemptLogin(String newusername, String newpassword) {
		username = newusername;
		password = newpassword;
	}

	@Override
	public MessageToClient execute(String address, Control control) {
		return control.login(address, username, password);
	}

}
